<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function fun1(){
            console.log("按钮被点击了1");
        }
        function fun2(){
            console.log("按钮被点击了2");
        }
        function fun3(){
            console.log("按钮双击");
        }
        function fun4() {
            console.log("某个键盘按键被按下");
         }
        function fun5() {
            // console.log("某个键盘按键被按下并松开。");
        }
        function fun6() {
            console.log("某个键盘按键被松开");
        }
        function fun7() {
            console.log("鼠标移动");
        } 
        function fun8() {
            console.log("鼠标移出");
        }
        function fun9() {
            console.log("鼠标被移动。");
        }function fun10() {
            console.log("鼠标按下。");
        }function fun11() {
            console.log("鼠标按下。");
        }
    </script>
</head>
<body>
    <button onclick="fun1(),fun2()" ondblclick="fun3()">123</button>
    <input type="text" onkeyup="fun6()", onkeydown="fun4()", onkeypress="fun5()">
    <br>
    <br>
    <div style="width: 300px; height: 300px; background-color: red;" onmouseenter="fun7()" onmouseleave="fun8()" onmousemove="fun9()" onmousedown="fun10()" onmouseup="fun11()"></div>
</body>
</html>